package com.example.zz.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 群聊天表 
 * </p>
 *
 * @author ${author}
 * @since 2021-01-14
 */
public class Chat implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 编号主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 群外建
     */
    private Long flockId;

    /**
     * 用户外键
     */
    private Long userId;

    /**
     * 公告内容
     */
    private String text;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 乐观锁
     */
    private Integer version;

    /**
     * 逻辑删除
     */
    private Integer isDelete;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getFlockId() {
        return flockId;
    }

    public void setFlockId(Long flockId) {
        this.flockId = flockId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "Chat{" +
        "id=" + id +
        ", flockId=" + flockId +
        ", userId=" + userId +
        ", text=" + text +
        ", updateTime=" + updateTime +
        ", createTime=" + createTime +
        ", version=" + version +
        ", isDelete=" + isDelete +
        "}";
    }
}
